package com.fengmi.controller;

import com.fengmi.service.GoodsSpecService;
import com.fengmi.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 123
 * @Date 2022/1/25 9:34
 * @Version 1.0
 */

@RestController
@CrossOrigin
@RequestMapping("forSpec")
public class GoodsSpecController {

    @Autowired
    private GoodsSpecService specService;

    @RequestMapping("findSpec/{id}")
    public ResultVO findSpec(@PathVariable String id) {
        return specService.findSpecById(id);
    }
}
